<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>
</head>
<script>
    function verify() {
        var username = document.getElementById("username").value;
        if (username == "admin"){
            return true;
        }else{
            alert("用户名只能为admin，请重新填写！");
            return false;
        }
    }
    function show() {
        var introduction = document.getElementById("introduction").value;
        alert(introduction);

    }
</script>
<body>
    <form id="form1" action="login.html" method="get">
        <p>用户名：
            <input id="username" type="text" onblur="verify()">
        </p>
        <p>密码：
            <input id="password" type="password">
        </p>
        <p>性别：
            <input name="sex" type="radio">男
            <input name="sex" type="radio" checked="checked">女
        </p>
        <p>学历：
            <input name="education" type="radio">专科
            <input name="education" type="radio" checked="checked">本科
        </p>
        <p>自我介绍：
            <textarea id="introduction" cols="20" rows="10"></textarea>
        </p>
        <p>
            <input type="submit" value="提交" onclick="show()">
        </p>
    </form>
</body>
</html>